package com.by.service.impl;

import com.by.bean.User;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.UserMapper;
import com.by.service.UserService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UserServiceImpl extends BaseServiceImpl<User, UserMapper> implements UserService {


    @Override
    public int queryUserAccount(String account) {
        return baseMapper.queryUserAccount(account);
    }

    @Override
    public User queryByAccount(String account) {
        return baseMapper.queryByAccount(account);
    }

    @Override
    public int updateRoleId(Map map) {
        return baseMapper.updateRoleId(map);
    }
}
